<%@ page contentType="text/html;charset=utf-8" %>
<jsp:include page="header.jsp">
	<jsp:param name="title" value="欢迎页"/>
</jsp:include>
<table cellpadding="2" cellspacing="1" class="table_form">
	<caption>上次登陆信息</caption>
	<tr>
		<th width="80"><strong>登陆ip</strong></th>
		<td id="ip">-</td>
		<th width="80"><strong>登陆地点</strong></th>
		<td id="addr">-</td>
		<th width="80"><strong>登陆时间</strong></th>
		<td id="lastvist">-</td>
	</tr>
</table>
<jsp:include page="footer.jsp"/>
<script type="text/javascript">
var ip = getcookie('ip');
if(ip) {
	$('#ip').html(ip);
	$('#lastvist').html(getcookie('lastvist').replace(/\"/g, ''));
	$.get('${requestScope.config.site_root}/admin?c=welcome&a=get_location&ip='+ip, function(s) {
		$('#addr').html(s);
	});
}
</script>